package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.exception.PermissionException;
import com.itheima.pojo.Permission;

import java.util.List;

public interface PermissionService {
    PageResult findPage(QueryPageBean queryPageBean);

    boolean add(Permission permission);

    void deleteById(Integer id) throws PermissionException;

    Permission findById(String id);

    boolean edit(Permission permission);

    List<Permission> findall();

}
